#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <client7z.h>

class TestServen : public ICallbackServerZip
{
public:
    TestServen()
    {
    }

    virtual ~TestServen()
    {
    }

    /// 获取压缩文件大小
    virtual void ICallCompressFileSize(quint64 uCompressFileSize){ qDebug() << uCompressFileSize; }

    /// 获取解压文件大小
    virtual void ICallExtractFileSize(quint64 uExtractFileSize){ qDebug() << uExtractFileSize; }

    /// 获取压缩比例大小
    virtual void ICallCompressComplete(float floatCompressSize){ qDebug() << floatCompressSize; }

    /// 获取解压比例大小
    virtual void ICallExtractComplete(float floatExtractFileSize){ qDebug() << floatExtractFileSize; }

    /// 获取压缩文件名称
    virtual void ICallCompressFileName(QString strCompressFile){ qDebug() << strCompressFile; }

    /// 获取解压文件名称
    virtual void ICallExtractFileName(QString strExtractFile){ qDebug() << strExtractFile; }
};

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private:
    Ui::MainWindow *ui;
    TestServen m_callback;
    ServerZip m_serven;
};
#endif // MAINWINDOW_H
